package com.dz.util;

import lombok.Data;

@Data
public class Page {
    private Integer currentPage;//当前页码
    private Integer totalCount;//总记录数
    private Integer pageSize;//每页显示的记录数
    private Object data;//数据
    private Integer start;

    //获取开始索引
    public Integer getStart() {
        return (currentPage-1)*pageSize;
    }
}
